package com.gxa.shop.service.category;

import com.gxa.shop.bean.dto.CategoryQueryPage;
import com.gxa.shop.bean.pojo.Category;
import com.gxa.shop.bean.vo.CategoryOption;
import com.gxa.shop.bean.vo.CategoryVo;

import java.util.List;

/**
 * com.gxa.shop.bean.service
 * User: zjy
 * Date: 2024/12/17 14:13
 * motto:   逆水行舟不进则退
 * Description:
 * Version: V1.0
 */
public interface CategoryService {
    List<CategoryVo> queryById(String categoryId);

    boolean insert(Category category);

    boolean update(Category category);

    boolean deleteById(Integer categoryId);

    List<Category> findByPage(CategoryQueryPage categoryQueryPage);

    Long findByTotal(CategoryQueryPage categoryQueryPage);

    List<CategoryOption> findAllList();
}
